package org.toonan.rental.chart;

import android.app.ActivityGroup;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TabHost;
import android.widget.TabWidget;
import android.widget.TextView;

public class PieChartActivityGroup extends ActivityGroup
{
	private String[] culDescribe = { "本科", "硕士", "博士", "初中", "高中" };
	private float[] culValues = { 50.0F, 20.0F, 5.0F, 60.0F, 70.0F };
	private String[] natDescribe = { "汉族", "壮族", "满族", "回族", "白族", "哈尼族", "黎族", "傣族" };
	private float[] natValues = { 120.0F, 40.0F, 50.0F, 20.0F, 5.0F, 2.0F, 1.0F, 0.5F };
	private String[] proDescribe = { "浙江省", "福建省", "广西省", "湖南省", "广东省" };
	private float[] proValues = { 30.0F, 20.0F, 60.0F, 50.0F, 70.0F };
	
	private void initButton()
	{
		int i = 0;
		Button[] arrayOfButton = { (Button) findViewById(2131230736), (Button) findViewById(2131230737),
				(Button) findViewById(2131230738), (Button) findViewById(2131230739) };
		ButtonListener localButtonListener = new ButtonListener(this);
		int j = arrayOfButton.length;
		while (true)
		{
			if (i >= j)
				return;
			arrayOfButton[i].setOnClickListener(localButtonListener);
			i++;
		}
	}
	
	private void initTabHost()
	{
		TabHost localTabHost = (TabHost) findViewById(2131230746);
		localTabHost.setup(getLocalActivityManager());
		Intent localIntent1 = new Intent(this, PieChartActivity.class);
		Bundle localBundle1 = new Bundle();
		localBundle1.putStringArray("strings", this.proDescribe);
		localBundle1.putFloatArray("values", this.proValues);
		localIntent1.putExtra("bundle", localBundle1);
		Intent localIntent2 = new Intent(this, PieChartActivity.class);
		Bundle localBundle2 = new Bundle();
		localBundle2.putStringArray("strings", this.natDescribe);
		localBundle2.putFloatArray("values", this.natValues);
		localIntent2.putExtra("bundle", localBundle2);
		Intent localIntent3 = new Intent(this, PieChartActivity.class);
		Bundle localBundle3 = new Bundle();
		localBundle3.putStringArray("strings", this.culDescribe);
		localBundle3.putFloatArray("values", this.culValues);
		localIntent3.putExtra("bundle", localBundle3);
		localTabHost.addTab(localTabHost.newTabSpec("tab1").setIndicator("省份").setContent(localIntent1));
		localTabHost.addTab(localTabHost.newTabSpec("tab2").setIndicator("民族").setContent(localIntent2));
		localTabHost.addTab(localTabHost.newTabSpec("tab3").setIndicator("文化").setContent(localIntent3));
		TabWidget localTabWidget = localTabHost.getTabWidget();
		View[] arrayOfView = new View[3];
		for (int i = 0;; i++)
		{
			if (i >= localTabWidget.getChildCount())
			{
				arrayOfView[0].setBackgroundResource(2130837549);
				arrayOfView[1].setBackgroundResource(2130837550);
				arrayOfView[2].setBackgroundResource(2130837551);
				return;
			}
			localTabWidget.getChildAt(i).getLayoutParams().height = 50;
			arrayOfView[i] = localTabWidget.getChildAt(i);
			TextView localTextView = (TextView) arrayOfView[i].findViewById(16908310);
			localTextView.setTextSize(25.0F);
			localTextView.setTextColor(-16777216);
		}
	}
	
	protected void onCreate(Bundle paramBundle)
	{
		super.onCreate(paramBundle);
		setContentView(2130903044);
		initButton();
		initTabHost();
	}
}

/*
 * Location: E:\org.toonan.rental.chart.1353877036934_dex2jar.jar Qualified Name:
 * org.toonan.rental.chart.PieChartActivityGroup JD-Core Version: 0.6.0
 */